<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>蜜蜂行为分析系统</title>
</head>

<body>
    <center>
        <h1>蜜蜂行为分析</h1>
        <br>
        <button type="button" onclick="analyse()">分析统计</button>
        <br><br><br>
        <span id="analyse"> </span>
    </center>

</body>

<script>
    function analyse(led) {
        getanayseData();
    }

    function getanayseData() {
        var xhttp = new XMLHttpRequest();
        xhttp.onreadystatechange = function () {
            if (this.readyState == 4 && this.status == 200) {
                document.getElementById("analyse").innerHTML =
                    this.responseText;
            }
        };
        xhttp.open("GET", "analyse", true);
        xhttp.send();
    }
</script>

</html>